<template>
  <div class="header-box">
    <div class="header-portrait"></div>
    <div class="author-name">
      {{authorName}}
      <i class="el-icon-info"></i>
    </div>
    <div>
      <el-button type="primary" style="margin: 0 auto;display: block;">写博客</el-button>
    </div>
    <div>
      <el-button plain style="border: none;margin: 0 auto;display: block;background: #f8f8f8;">草稿箱({{draftsNumber}})</el-button>
    </div>
  </div>
</template>

<script>
    export default {
        name: 'HeaderCom',
        data (){
            return {
              authorName:'FSE',
              draftsNumber:0
            }
        }
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.header-portrait{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: yellow;
  margin: 0 auto;
}
  .author-name{
    line-height: 50px;
    text-align: center;
    font-size: 14px;
  }
  .header-box{
    padding-bottom: 30px;
  }
</style>
